<div class="form_details">
	<div class="space30"></div>
	<!--form_container starts-->
	<div class="form_container">
		<h4 style="background-color:#FF8200 !important;color:#ffffff !important;">
			<?php if(isset($form_detail[0]['event_name'])){ echo "Application for ".$form_detail[0]['event_name'].' - ';} ?>
			<?php if(isset($form_detail[0]['award_name'])){ echo $form_detail[0]['award_name'];} ?>
		</h4>
	</div>
	<!--form_container starts-->
	<div class="space10"></div>
	<!--form_container starts-->
	
	<!------------------------------------------Personal Info------------------------------->
	<?php echo form_open(BASE_URL . '/user/add_user_application', array('id' => 'user_application_refree_form', 'method' => 'post')); ?>
	<div class="form_container">
		<h4>Refree Details</h4>
		<?php if(isset($form_detail[0]['award_refree_count']) && $form_detail[0]['award_refree_count']!='0'){
			for($i=1;$i<=$form_detail[0]['award_refree_count'];$i++){	
		?>
			<!--row starts-->
		<div class="row1">
			<div class="form-group col-sm-6">
				<label for="name2">Name <span class='asterisk'></span></label>
				<input class="form-control white" id="refree_name<?php echo $i; ?>" name="refree_name[]" required value="<?php if(isset($user_data_refree[$i-1]->user_application_refree_name)) { echo $user_data_refree[$i-1]->user_application_refree_name; }?>" placeholder="Refree Name">
				<div class="error_msg" id="err-refree_name<?php echo $i; ?>"></div>
			</div>
			<div class="form-group col-sm-6">
				<label for="email">Email <span class='asterisk'></span></label>
				<input class="form-control white" id="refree_email<?php echo $i; ?>" name="refree_email[]" required type="text" value="<?php if(isset($user_data_refree[$i-1]->user_application_refree_email)) { echo $user_data_refree[$i-1]->user_application_refree_email; }?>" placeholder="Refree Email">
				<div class="error_msg" id="err-refree_email<?php echo $i; ?>"></div>
			</div>
			<div class="clearfix"></div>
		</div>
		<!--raw closed-->
		<?php }}?>
	</div>
	<!--form_container starts-->
	<div class="space30"></div>
	<input type="hidden" name="app_award_id" value="<?php if(isset($form_detail[0]['award_id'])){ echo $form_detail[0]['award_id'];} ?>" />
	<input type="hidden" name="app_type" value="refree" />
	<input type="hidden" name="app_applicant_id" value="<?php echo $this->session->userdata('user_id'); ?>" />
	<input type="hidden" name="app_applicant_refree" value="<?php if(isset($form_detail[0]['award_refree_count'])){ echo $form_detail[0]['award_refree_count'];}?>" />
	<button type="button" class="btn btn-primary" id="applicant_form_submit_refree">
		Save & Continue
	</button>
	<?php echo form_close(); ?>
</div>